Skip to content

Address Copilot CI feedback from #11 - #12

Closed
slashrsm wants to merge 3 commits into
portphp:masterfrom
slashrsm:ci/address-copilot-feedback
Closed

Address Copilot CI feedback from #11#12
slashrsm wants to merge 3 commits into
portphp:masterfrom
slashrsm:ci/address-copilot-feedback

Conversation

@slashrsm

@slashrsm slashrsm commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #11 addressing Copilot review comments.

  • Declare "php": "^8.2" to match the tested matrix (excludes PHP 9+ by default)
  • Validate composer.lock when present
  • Prefer composer install when a lockfile is present
  • Hash both composer.json and composer.lock in the cache key
  • Run Composer with --no-interaction

Test plan

  • CI matrix PHP 8.2–8.5 green
  • Copilot review on latest commit

- Validate composer.lock when present
- Include composer.lock in cache key hash
- Declare php >=8.2 to match the CI matrix

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR follows up on #11 by tightening CI/composer behavior to better align with the PHP 8.2–8.5 test matrix and improve Composer cache invalidation.

Changes:

  • Add a PHP platform requirement to composer.json (>=8.2).
  • Update CI to validate composer.lock when present.
  • Include both composer.json and composer.lock in the Composer cache key hash.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
composer.json Declares the minimum supported PHP version to align package requirements with the CI matrix.
.github/workflows/test.yml Adjusts Composer validation behavior and strengthens the cache key to account for lockfile changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread composer.json Outdated
"docs": "https://portphp.readthedocs.org"
},
"require": {
"php": ">=8.2",
Comment on lines +34 to +38
if [ -f composer.lock ]; then
composer validate --strict
else
composer validate --strict --no-check-lock
fi
- Use ^8.2 instead of >=8.2 so Composer does not accept PHP 9+ by default
- Prefer composer install when a lockfile is present

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread composer.json
"docs": "https://portphp.readthedocs.org"
},
"require": {
"php": "^8.2",
Comment thread .github/workflows/test.yml Outdated
@@ -30,18 +30,28 @@ jobs:


- name: Validate composer.json
Comment thread .github/workflows/test.yml Outdated
Comment on lines +51 to +54
composer install --prefer-dist --no-progress
else
composer update --prefer-dist --no-progress
fi
- Pass --no-interaction on composer validate/install/update
- Rename validate step to reflect lockfile handling

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

slashrsm added a commit that referenced this pull request Jul 22, 2026
Declare php ^8.2, lock-aware validate/install, cache key includes lock, --no-interaction.
@slashrsm

Copy link
Copy Markdown
Contributor Author

Merged to master via git squash (gh OAuth lacks workflow scope for PR merge API).

@slashrsm slashrsm closed this Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants